package com.dawn.module.hospital.enums;

import cn.hutool.core.util.ArrayUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description:
 * @author: cnsu-cmh
 * @time: 2024/4/9 12:16
 */
@Getter
@AllArgsConstructor
public enum QrcodePayStatusEnum {


    PAY_STATUS_UNPAID(0,"待支付"),
    PAY_STATUS_PAYOFF(1,"支付成功"),
    PAY_STATUS_REFUND(2,"已退款"),
    ;



    private final Integer code;

    private final String name;


    public static QrcodePayStatusEnum valueOfType(String name) {
        return ArrayUtil.firstMatch(o -> o.getName().equals(name), values());
    }
}
